package api.sea;

import conf.Url;
import org.apache.commons.lang3.RandomStringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import util.HttpClientUtils;
import util.ResponseData;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class FileUploadApi {
    private static final String sea_file= Url.Base_Url+"consumer/lgsEntrustment/uploadExcel";
    public ResponseData sea_file(String path) throws IOException {
        Map<String,String> file=new HashMap<>();
        file.put("file","./data"+path);
        return  HttpClientUtils.upload_file(sea_file,null,file);
    }
}
